<div id="list" style="margin-top: 10px;">
<script type="text/javascript" src="assets/tooltip/tooltip.js"></script>
<?php if(isset($category)) { ?>
<span style="font-weight: bold; font-size: 13px; margin-left: 15px;"><a href="<?php echo site_url(); ?>">Trang chủ</a> » </span><span id="path"><?php echo $category; ?></span>
<?php } else {?>
<div class="clear"></div>
<div style="margin-top: 20px; background: #CCC; padding: 5px; font-weight: bold;"><?php echo $listTitle ?></div>
<?php
} ?>
<ul id="list-product">
	<?php 
	if(is_array($listProduct) && count($listProduct) > 0) {
		foreach ($listProduct as $key => $value) {?>
	<li>
		<div class="image-product">
			<a href="<?php echo site_url('sanpham'). '/'.$value->productId .'/'.create_link($value->name); ?>">
				<img src="uploads/products/thumbs/<?php echo $value->images; ?>" width="154" height="220">
			</a>
		</div>
		<div class="infor-product">
			<a class="name-product-home" title="<?php echo $value->name; ?>" href="<?php echo site_url('sanpham'). '/'.$value->productId .'/'.create_link($value->name); ?>"><h3><?php echo $value->name; ?></h3></a>
			<span class="cost">
				<span style="color:#000;">Giá:</span><?php echo $value->price; ?>
			</span>
		</div>

	</li>
	<?php } 
	} else {
		echo '<p style="margin: 15px; font-size: 20px; color:red;">Không có sản phẩm nào</p>';
	}

	 ?>
</ul>
</div>